package ai.zixing.example02;

import ai.zixing.example01.Computer;
import ai.zixing.example01.SDCard;
import ai.zixing.example01.SDCardImpl;
import ai.zixing.example01.TFCardImpl;

public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        String read = computer.read(sdCard);
        System.out.println(read);
        System.out.println("=====================");
        SDAdapterTF2 adapterTF2 = new SDAdapterTF2(new TFCardImpl());
        System.out.println(computer.read(adapterTF2));
    }
}

